<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view xmlns="http://www.w3.org/1999/xhtml"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:s="http://jboss.org/schema/seam/taglib" contentType="text/html">
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <title>Seam Tasks</title>
            <script src="jquery-1.3.2.min.js" type="text/javascript" />
            <script src="seam-tasks-client.js" type="text/javascript" />
            <link href="style.css" rel="stylesheet" type="text/css" />
            <ui:insert name="head" />
        </head>
        <body >
            <div class="container">
                <div class="header">
                    <h1>Seam Tasks</h1>
                    <s:div rendered="#{identity.loggedIn}">
	                    <ul id="menu">
	                        <li><a href="tasks.seam">Tasks</a></li>
	                        <li><a href="categories.seam">Categories</a></li>
	                        <li><a href="resolved.seam">Resolved tasks</a></li>
	                        <li>
	                            <s:link id="menuLogoutId" action="#{identity.logout}" value="Logout" propagation="none" />
	                        </li>
	                        <li>Logged as: <h:outputText id="username" value="#{credentials.username}" /></li>
	                    </ul>
	            	</s:div>
                </div>
                <div id="content">
                    <ui:insert name="body" />
                </div>
		        <div id="footer">
                	<hr/>
		            <div>Powered by Seam 2.2, RESTEasy, Hibernate, Facelets and jQuery. Find more at <span><a href="http://seamframework.org">seamframework.org</a></span></div>
		        </div>
            </div>
        </body>
    </html>
</f:view>
